Skip to main content

Forms Builder

The Forms Builder consists of two main components:

  1. The main builder interface provides a powerful yet intuitive environment for creating structured data input forms. Using a drag-and-drop interface, you can quickly build forms with a wide range of input types and validation rules.

  2. The Forms Playground allows you to test your forms and see their data output in real-time. As you fill out the form, you can observe how the data is structured and stored, making it easier to understand the relationship between form fields and their resulting data structure.

Builder Interface

Forms Builder Overview The Forms Builder interface with its key components labeled

The builder interface consists of three main areas:

  1. Form Elements Palette

    • Drag-and-drop form components
    • Wide range of input types
    • Layout and structural elements
    • Interactive controls
  2. Form Canvas

    • Visual form layout area
    • Drag-and-drop arrangement
    • Real-time preview
    • Element selection and editing
  3. Properties Panel

    • Dynamic configuration options
    • Validation rules
    • Conditional logic
    • Styling options

Available Form Elements

The Forms Builder provides a comprehensive set of input elements to handle various data collection needs:

Basic Input Elements

Element TypePurposeKey Features
Text FieldSingle-line text inputCharacter limits, patterns, placeholders
Text AreaMulti-line text inputAuto-resize, character limits
NumberNumeric inputMin/max values, step size, units
DatetimeDate and time selectionDate ranges, formats, timezone handling
CheckboxBoolean valuesCustom labels, default state
Radio GroupSingle selection from optionsVertical/horizontal layout
SelectDropdown selectionSearch, multi-select option
Checkbox GroupMultiple selectionLayout options, min/max selections

Advanced Elements

Element TypePurposeKey Features
TaglistMultiple value entryCustom tags, autocomplete
GroupOrganize related fieldsCollapsible sections
Expression FieldComputed valuesFormula support
Image ViewDisplay imagesSize control, alt text

Layout Elements

Element TypePurposeKey Features
SpacerAdd vertical spaceCustom height
SeparatorVisual dividerStyle options

Configuring Form Elements

The properties panel adapts to show relevant options based on the selected element:

Common Properties

  1. Basic Settings

    • Field label
    • Help text
    • Placeholder text
    • key (This is the key that will be used in the data structure to access the data of the field)
    • Required field toggle
  2. Validation Rules

    • Input patterns
    • Min/max values
    • Character limits
    • Custom error messages
  3. Appearance

    • Width settings
    • Alignment options
    • Custom styling
    • Visibility conditions

Advanced Configuration

  1. Conditional Logic

    • Show/hide based on other fields
    • Enable/disable rules
    • Value dependencies
    • Custom expressions
  2. Data Handling

    • Default values
    • Data transformation
    • Format settings
    • Value constraints

Forms Playground

The Forms Playground is a powerful testing environment that helps you understand and validate your form's behavior and data structure. It provides real-time feedback on how your form will function and what data it will generate.

Forms Playground The Forms Playground showing a form preview alongside its JSON data output

Key Features

  1. Live Preview

    • See your form exactly as users will
    • Test interactions in real-time
    • Validate conditional logic
    • Check responsive behavior
  2. Data Output View

    • Real-time JSON data structure
    • See how form values are stored
    • Understand nested data relationships
    • Preview computed values

Working with Field Keys

Field keys are crucial for form functionality as they:

  • Serve as unique identifiers for each field
  • Are used in conditional logic
  • Define the structure of output data
  • Enable field relationships
Key Naming

When setting field keys:

  • Use descriptive names (e.g., is_complaint instead of checkbox1)
  • Follow a consistent naming convention
  • Avoid special characters
  • Consider the data structure you want to create

Testing Conditional Logic

The Playground is especially useful for testing conditional form behavior:

{
"is_complaint": true,
"complaint_type": "product",
"severity_level": 3,
"description": "Product malfunction"
}

Example conditions you can test:

  • Show severity field if is_complaint == true
  • Require description if severity_level > 2
  • Display different options based on complaint_type
Testing Complex Logic

Use the Playground to verify complex conditions:

  1. Set up your conditional logic
  2. Fill out the form with different test cases
  3. Verify both the visibility rules and data output
  4. Check edge cases and combinations

Import and Export

The Forms Builder provides import and export functionality to help you backup, share, or reuse your forms:

Forms Import Export The Forms Builder interface with the import and export options highlighted

Exporting Forms

When you export a form, you'll receive a .form file containing the complete form definition, including all configurations and validations. You can access export options through the Actions menu in the top right corner.

Importing Forms

To import a form:

  1. Use the Import option from the Actions menu
  2. Select a .form file
  3. The form will be recreated in the Forms Playground with all its configurations
Form Sharing

The .form file contains all the information needed to recreate the form, making it perfect for:

  • Backing up form definitions
  • Sharing forms between systems
  • Creating form templates